package com.ruoyi.carShopService.mapper;

import com.ruoyi.carShopService.domain.ShopUserDto;
import com.ruoyi.system.api.domain.CarMerchant;
import com.ruoyi.system.api.domain.CarMerchantPrincipal;
import com.ruoyi.system.api.domain.CarMerchantVerification;
import org.apache.ibatis.annotations.Select;

public interface FindShopUserMapper {

    ShopUserDto findShopUser(Long id);

    @Select("select mer_name,mer_area,img_path,mer_address,mer_introduction from car_merchant where id=#{id}")
    CarMerchant findCarMerchantById(Long id);

    @Select("select pcp_name,phone_number,id_number,id_card_front,id_card_back from car_merchant_principal where mer_id=#{id}")
    CarMerchantPrincipal findCarMerchantPrincipalById(Long id);

    @Select("select mer_license_number,mer_license_image from car_merchant_verification where mer_id=#{id}")
    CarMerchantVerification findCarMerchantVerificationById(Long id);
}
